import { createStore } from "vuex";
import createpersistedstate from 'vuex-persistedstate'
const store = createStore({
    state(){
        return{
            userinfo:{}
        }
    },
    getters:{

    },
    mutations:{
        setuserinfoFn(state,data){
            state.userinfo = data
        }
    },
    actions:{

    },
    modules:{

    },
     // 配置永久化存储插件
     plugins:[
        createpersistedstate()
    ]
})
export default store